package com.lmqb.bean;

import java.util.Date;


/*
 * 管理员
 * */
public class SysUser {
    private Integer userId;  //用户ID

    private String loginName;   //登录名

    private Integer roleId;   //角色ID

    private String userPwd;  //加密后的登录密码

    private String realName;   //真实姓名

    private Byte deleteFlag;    //是否允许删除 [1允许;2不允许]

    private String lastIp;    //最后登录ip

    private Integer lastLoginTime;   //最后登录时间

    private Integer loginTimes;    //登录次数

    private Byte userStatus;   //管理员状态:[1正常;2冻结;3删除]

    private String mobile;   //手机号

    private String job;   //职位
    
    private Date lastLoginTimeD;   
     
    private String roleName;

    public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Date getLastLoginTimeD() {
		return lastLoginTimeD;
	}

	public void setLastLoginTimeD(Date lastLoginTimeD) {
		this.lastLoginTimeD = lastLoginTimeD;
	}

	public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd == null ? null : userPwd.trim();
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName == null ? null : realName.trim();
    }

    public Byte getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Byte deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp == null ? null : lastIp.trim();
    }

    public Integer getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Integer lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(Integer loginTimes) {
        this.loginTimes = loginTimes;
    }

    public Byte getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Byte userStatus) {
        this.userStatus = userStatus;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job == null ? null : job.trim();
    }

	@Override
	public String toString() {
		return "SysUser [userId=" + userId + ", loginName=" + loginName
				+ ", roleId=" + roleId + ", userPwd=" + userPwd + ", realName="
				+ realName + ", deleteFlag=" + deleteFlag + ", lastIp="
				+ lastIp + ", lastLoginTime=" + lastLoginTime + ", loginTimes="
				+ loginTimes + ", userStatus=" + userStatus + ", mobile="
				+ mobile + ", job=" + job + ", lastLoginTimeD="
				+ lastLoginTimeD + ", roleName=" + roleName + "]";
	}
    
    
}